package com.example.imagecompressor.model;

/**
 * Enum representing the possible output formats for compressed images.
 */
public enum OutputFormat {
    JPEG("JPEG (.jpg)", ".jpg");
    // Removed PNG and WEBP options
    // PNG("PNG (.png)", ".png"),
    // WEBP_LOSSY("WEBP 有损 (.webp)", ".webp"),
    // WEBP_LOSSLESS("WEBP 无损 (.webp)", ".webp");

    private final String displayName;
    private final String extension;

    OutputFormat(String displayName, String extension) {
        this.displayName = displayName;
        this.extension = extension;
    }

    public String getDisplayName() {
        return displayName;
    }

    public String getExtension() {
        return extension;
    }

    @Override
    public String toString() {
        // This is used by the ComboBox (if it existed) and potentially elsewhere
        return displayName;
    }
} 